<include file="__THEME__/header" />
<link href="../Public/css/space.css" rel="stylesheet" type="text/css" />
<php>$userface = getUserFace($mid)</php>
<script>

function hide_reply(o,id){
	if($(o).attr('rel')=='on'){
		$(o).attr('rel','off');
		$(o).html('{:L(record_0000)}');
		$("#reply_list_"+id).slideDown("normal");
	}else{
		$(o).attr('rel','on');
		$(o).html('{:L(record_0001)}');
		$("#reply_list_"+id).slideUp("normal");
	}
}


function delrecord(id){
	$.post('index.php?app=home&mod=record&act=delrecord',{id:id},function(result){
		$("#record_content_"+id).remove();
	});
}
</script>
<div class="contents lbg B">
<include file="../Public/left" />
  <div class="contents_min w787">
   <h3 class="tit_h3">{$uid|getUserName}{:L(record_0002)}</h3>

      <div class="friendBox">
      <div class="sidebar_R">
        <dl class="FSort mt20">
        	<dt>{:L(record_0003)}</dt>
			<php>$spage=($_GET['p'])?'&p='.$_GET['p']:''</php>
            <dd <eq name="d" value="">class="ic"</eq> ><a href="{:U('space/View/record/',array('uid'=>$uid))}{$spage}">{:L(record_0004)}</a></dd>
            <dd <eq name="d" value="today">class="ic"</eq>  ><a href="{:U('space/View/record/',array('uid'=>$uid,'d'=>'today'))}{$spage}">{:L(record_0005)}</a></dd>
            <dd <eq name="d" value="weekday">class="ic"</eq>  ><a href="{:U('space/View/record/',array('uid'=>$uid,'d'=>'weekday'))}{$spage}">{:L(record_0006)}</a></dd>
			<dd <eq name="d" value="month">class="ic"</eq>  ><a href="{:U('space/View/record/',array('uid'=>$uid,'d'=>'month'))}{$spage}">{:L(record_0007)}</a></dd>
        </dl>
      </div>
<php>if(!$record){</php>
        <div class="FList">
        <volist id="vo" name="list">
          <div class="Fli" id="record_content_{$vo.id}">
            <div class="headpic50 L"><a href="{:U('space/View/index','uid='.$vo['uid'])}"><img src="{$vo.uid|getUserFace='s'}" /></a></div>
            <div class="LC">
              <div onmouseover="this.className='on'" onmouseout="this.className='#'">
              <php>if( $vo['uid']==$mid ){</php><a href="javascript:void(0)" onclick="delrecord({$vo.id})" class="delR">{:L(record_0008)}</a><php>}</php><a href="{:U('space/View/index','uid='.$vo['uid'])}" class="f12 mr10">{$vo.uid|getUserName}</a><em>{$vo.cTime|friendLydate}</em><br />
                {$vo.content} <a href="javascript:void(0)" onclick="hide_reply(this,{$vo.id});" class="ml10">{:L(record_0000)}</a> </div>
              	<div id="reply_list_{$vo.id}" class="rc">
               		{$vo.comment}
				</div>
            </div>
            <div class="C"></div>
          </div>
         </volist>
         <div class="C"></div>
        <div class="page mt5 alR mb20">{$page}</div>
      </div>
	  <php>}else{</php>
	        <div class="FList">

	          <div class="Fli" id="record_content_{$record.id}">
	            <div class="headpic50 L"><a href="{:U('space/View/index','uid='.$record['uid'])}"><img src="{$record.uid|getUserFace='s'}" /></a></div>
	            <div class="LC">
	              <div onmouseover="this.className='on'" onmouseout="this.className='#'">
	              <php>if( $record['uid']==$mid ){</php><a href="javascript:void(0)" onclick="delrecord({$record.id})" class="delR">{:L(record_0008)}</a><php>}</php><a href="{:U('space/View/index','uid='.$record['uid'])}" class="f12 mr10">{$record.uid|getUserName}</a><em>{$record.cTime|friendLydate}</em><br />
	                {$record.content} <a href="javascript:void(0)" onclick="hide_reply(this,{$record.id});" class="ml10">{:L(record_0000)}</a> </div>
	              	<div id="reply_list_{$record.id}" class="rc">
	               		{$record.comment}
					</div>
	            </div>
	            <div class="C"></div>
	          </div>
	         <div class="C"></div>
             <div class="alR pt5"><a href="{:U('space/View/record/',array('uid'=>$uid))}{$spage}">{:L(record_0012)}</a></div>
	        <div class="page mt5 alR mb20">{$page}</div>
	      </div>
	  <php>}</php>
      <div class="C"></div>
        </div>
      </div>
  <div class="C"></div>
</div>
<include file="__THEME__/footer" /> 